package qit.itmiaojie.service.impl;

import qit.itmiaojie.dao.RoleDao;
import qit.itmiaojie.pojo.Role;
import qit.itmiaojie.service.RoleService;

import java.util.List;

public class RoleServiceImpl implements RoleService {

    private RoleDao roleDao;
    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    /**
     * 查询所有
     * @return
     */
    @Override
    public List<Role> findAll() {
        return roleDao.findAll();
    }

    @Override
    public void addRole(Role role) {
        roleDao.addRole(role);
    }
}
